from distutils.core import setup
import glob

scripts=['bcat_filter.py',
         'bcat_indices.py',
         'bcat_merge_hists.py',
         'bcat_module_hists.py',]

scripts_requested = set(scripts)
scripts_that_exist = set(glob.glob('*.py')) | set(glob.glob('*.sh'))
scripts_to_install = list(scripts_requested & scripts_that_exist)
scripts_left_out = list((scripts_requested - scripts_that_exist))
scripts_left_out.sort()

setup(name='batchcat',
      version='0.1.0',
      description='Python analysis framework for batch computing',
      author='Craig Bookwalter',
      author_email='craigb@jlab.org',
      packages=['batchcat',
                'batchcat.run'],
      scripts=scripts_to_install,
      )


for script in scripts_left_out:
    print "{0} requested but not present; omitting...".format(script)


